how to sort a list of strings by length in python